package tpavel.proxy;

public class ProxyServiceProperties {
	private int localPort;
	private String remoteHost;
	private int remotePort;
	private String serviceName;
	
	public ProxyServiceProperties(String serviceName) {
		this.serviceName = serviceName;
	}
	
	public int getLocalPort() {
		return localPort;
	}
	public void setLocalPort(int localPort) {
		this.localPort = localPort;
	}
	public String getRemoteHost() {
		return remoteHost;
	}
	public void setRemoteHost(String remoteHost) {
		this.remoteHost = remoteHost;
	}
	public int getRemotePort() {
		return remotePort;
	}
	public void setRemotePort(int remotePort) {
		this.remotePort = remotePort;
	}
	public String getServiceName() {
		return serviceName;
	}
//	public void setServiceName(String serviceName) {
//		this.serviceName = serviceName;
//	}
	
	public String toString() {
		return String.format("%s:%s => %s:%s", serviceName, localPort, remoteHost, remotePort);
	}
 
}
